extends Node2D
@onready var tileMap: TileMap = $TileMap
@onready var camera: Camera2D = $Player/Camera2D
@onready var player: Player = $Player
@onready var label:Label = $Labels/Label3

func _ready() -> void:
	Main.label=label
	getRect()

# 设置相机的边界
func getRect():
	# 获得图块为单位的矩形宽高
	var mapRect := tileMap.get_used_rect()
	# 单个图块的像素大小
	var tileSize = tileMap.cell_quadrant_size
	camera.limit_bottom = mapRect.end.y * tileSize
	camera.reset_smoothing()

	
